function [PlaceCell_Prop_Mean] = PlaceCellProp_Mean_Prism(Placeness_MetaData, animalName, drug)

for n = 1:size(Placeness_MetaData, 2)
    if strcmp(Placeness_MetaData(n).animalName, animalName) && strcmp(Placeness_MetaData(n).drug, drug) && strcmp(Placeness_MetaData(n).session, 'AM') && Placeness_MetaData(n).Mobility_Pass == 1
        PlaceCell_Prop(n,1) = Placeness_MetaData(n).PlaceCell_Proportion;
    elseif  strcmp(Placeness_MetaData(n).animalName, animalName) && strcmp(Placeness_MetaData(n).drug, drug) && strcmp(Placeness_MetaData(n).session, 'day1') && Placeness_MetaData(n).Mobility_Pass == 1
        PlaceCell_Prop(n,1) = Placeness_MetaData(n).PlaceCell_Proportion;
    else
        PlaceCell_Prop(n,1) = nan;
    end
end
PlaceCell_Prop_Mean = mean(PlaceCell_Prop, 'omitnan');

end